package oops.inheritance;

public class Child extends Parent {
	private String name;
	
	public Child(){
		System.out.println("Child constructor with no arguments");
	}
	
	public Child(String name){
		//this();
		//super();
	    super(name, 100);
		this.name = name;
		System.out.println("Child constructor with name argument");
		
	}
	public void sayHello(String name){
		System.out.println("Hello " + name);
	}
	
	public void sayGoodMorning(String name){
		System.out.println("Good morning " + name);
	}

}
